//---------------------------------------------------------------------------

#ifndef MainH
#define MainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include <FileCtrl.hpp>
#include <Dialogs.hpp>
#include <ExtDlgs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
	TPageControl *PageControl1;
	TTabSheet *TabSheet1;
	TTabSheet *TabSheet2;
	TImage *Map;
	TImage *Simu;
	TRadioGroup *MapPen;
	TButton *ClearMapBtn;
	TGroupBox *GroupBox1;
	TButton *ShowBtn;
	TButton *GetMapBtn;
	TButton *InitialBtn;
	TGroupBox *GroupBox2;
	TLabeledEdit *Ko_Edit;
	TLabeledEdit *Kl_Edit;
	TLabeledEdit *MaxEpoch_Edit;
	TLabeledEdit *PointNum_Edit;
	TLabeledEdit *ParticalNum_Edit;
	TLabeledEdit *detect_width_Edit;
	TLabeledEdit *dt_Edit;
	TLabeledEdit *MutationRate_Edit;
	TFileListBox *FileListBox;
	TButton *SaveMapBtn;
	TOpenPictureDialog *OpenPictureDialog;
	TSavePictureDialog *SavePictureDialog;
	TButton *LoadMapBtn;
	void __fastcall MapMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
	void __fastcall MapMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
          int X, int Y);
	void __fastcall MapMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
          int X, int Y);
	void __fastcall SimuMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
          int X, int Y);
	void __fastcall SimuMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
          int X, int Y);
	void __fastcall ClearMapBtnClick(TObject *Sender);
	void __fastcall SimuMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
	void __fastcall ShowBtnClick(TObject *Sender);
	void __fastcall GetMapBtnClick(TObject *Sender);
	void __fastcall InitialBtnClick(TObject *Sender);
	void __fastcall MaxEpoch_EditChange(TObject *Sender);
	void __fastcall PointNum_EditChange(TObject *Sender);
	void __fastcall ParticalNum_EditChange(TObject *Sender);
	void __fastcall detect_width_EditChange(TObject *Sender);
	void __fastcall dt_EditChange(TObject *Sender);
	void __fastcall Ko_EditChange(TObject *Sender);
	void __fastcall Kl_EditChange(TObject *Sender);
	void __fastcall MutationRate_EditChange(TObject *Sender);
	void __fastcall SaveMapBtnClick(TObject *Sender);
	void __fastcall FormCreate(TObject *Sender);
	void __fastcall LoadMapBtnClick(TObject *Sender);
	void __fastcall FileListBoxDblClick(TObject *Sender);


private:	// User declarations
public:		// User declarations
	__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
